package web

import (
	"dlist/web/controller"
	"github.com/gin-gonic/gin"
)

func RegisterRouter(api *gin.RouterGroup) {
	issueApi := api.Group("issue")
	issueApi.POST("add", controller.AddIssue)
	issueApi.POST("delete", controller.DeleteIssue)
	issueApi.POST("finish", controller.FinishIssue)
	issueApi.POST("undo", controller.UndoFinishIssue)
	issueApi.POST("update", controller.UpdateIssue)
	issueApi.GET("list", controller.ListIssues)
	issueApi.GET("detail", controller.GetIssue)
}
